Skip to content

feat(evals): route morph- models to Morph's free API - #128

Merged
ScriptedAlchemy merged 3 commits into
mainfrom
t3/evals-morph
Nov 16, 2026
Merged

ScriptedAlchemy merged 3 commits into
mainfrom
t3/evals-morph

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Why

The group-conversation eval needed paid Anthropic or OpenAI keys, so its pre-registered parallel-or-serial question has never been run. Morph serves Kimi and DeepSeek for free over the OpenAI Responses API, which the eval's client already speaks.

What changed

  • morph- models (for example morph-kimik31 and morph-dsv41flash) call Morph's API. The key comes from MORPH_API_KEY, or from the morph provider in ~/.config/opencode/opencode.json, read at run time like the existing ~/.codex/config.toml lookup.

Scope

  • Covers the group-conversation eval only. mcp-tool-use and test-signal keep their routes.
  • Morph models stand in for frontier models. A result says how these models converse, not how Claude or GPT would.

Verification

  • With this route, I ran a full comparison of a candidate "primary answers first" scheduler against today's "everyone answers together". It used 3 design cases × 3 samples × 2 pairings, with Kimi K3 as blind judge, at no API cost. 14 of 18 samples scored, and 4 hit Morph rate limits (HTTP 429).
  • Against the decision rule written before the run, "together" stays. In-turn engagement was 0.5 lower in one pairing and tied in the other. The judge rated the parallel overlap as useful coverage, not noise, in every completed case. That scheduler is therefore not proposed.
  • A one-sample smoke run completed with 0 errors. The evals typecheck and grader tests pass (16 of 16).

🤖 Generated with Claude Code

Group eval runs needed paid Anthropic or OpenAI keys. Morph serves Kimi and DeepSeek over the OpenAI Responses API for free, so morph- models now call it, with the key from MORPH_API_KEY or the user's OpenCode morph provider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 41f51e0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

ScriptedAlchemy and others added 2 commits November 16, 2026 03:14
The comparison run lost 4 of 18 samples to HTTP 429. Rate limits and server errors now retry twice, honoring Retry-After. The Morph config is read once per run, honors XDG_CONFIG_HOME, and rejects an empty key. Model ids move into the README's model table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ScriptedAlchemy
ScriptedAlchemy merged commit 7dc2203 into main Nov 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant